package com.hzqy.persistence.dao.monitor;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.monitor.MonitorSessionVo;
import com.hzqy.web.vo.monitor.MonitorUserOnlineTimeVo;

@Repository
public class MonitorSessionDao extends PersistenceDao<MonitorSessionVo,Integer> {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	public List<MonitorSessionVo> selectMonitorSessionList(MonitorSessionVo msVo) {
		List<MonitorSessionVo> msVoList = null;
		try {
			msVoList = this.getSqlSession().selectList(getNamespace()+"selectMonitorSessionList", msVo);
		} catch(Exception e) {
			LOG.error("查询监测session列表异常：",e);
		}
		return msVoList;
	}

	public List<MonitorUserOnlineTimeVo> selectMonitorUserOnlineTimeVoList(MonitorUserOnlineTimeVo msivVo) {
		List<MonitorUserOnlineTimeVo> msiVoList = null;
		try {
			msiVoList = this.getSqlSession().selectList(getNamespace()+"selectMonitorUserOnlineTimeVoList", msivVo);
		} catch(Exception e) {
			LOG.error("查询监测session列表异常：",e);
		}
		return msiVoList;
	}
}
